package action.json;

import org.apache.struts2.json.annotations.JSON;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

/**
 * @author dingyuanwei
 * @version 建立時間：Dec 29, 201010:58:57 AM
 * 類別說明:
 */
@SuppressWarnings("serial")
public class UserAction extends ActionSupport {

	private String name ="丁元伟";
	private int age =25;
	private String sex ="男";
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	//@JSON(serialize =false)//代表不进行序列化
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		return Action.SUCCESS;
	}
	
	
	public String josnDate() throws Exception {
		
		return "jsonDate";
	}
	
	
}
